3.3.63 \(\int \frac {a+b \log (c (d+e x)^n)}{f+g x^2} \, dx\) [263]

3.3.63.1 Optimal result
3.3.63.2 Mathematica [A] (verified)
3.3.63.3 Rubi [A] (verified)
3.3.63.4 Maple [C] (warning: unable to verify)
3.3.63.5 Fricas [F]
3.3.63.6 Sympy [F(-1)]
3.3.63.7 Maxima [F]
3.3.63.8 Giac [F]
3.3.63.9 Mupad [F(-1)]

3.3.63.1 Optimal result

Integrand size = 24, antiderivative size = 239 \[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x^2} \, dx=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e \left (\sqrt {-f}-\sqrt {g} x\right )}{e \sqrt {-f}+d \sqrt {g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e \left (\sqrt {-f}+\sqrt {g} x\right )}{e \sqrt {-f}-d \sqrt {g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {b n \operatorname {PolyLog}\left (2,-\frac {\sqrt {g} (d+e x)}{e \sqrt {-f}-d \sqrt {g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {b n \operatorname {PolyLog}\left (2,\frac {\sqrt {g} (d+e x)}{e \sqrt {-f}+d \sqrt {g}}\right )}{2 \sqrt {-f} \sqrt {g}} \]

output
1/2*(a+b*ln(c*(e*x+d)^n))*ln(e*((-f)^(1/2)-x*g^(1/2))/(e*(-f)^(1/2)+d*g^(1 
/2)))/(-f)^(1/2)/g^(1/2)-1/2*(a+b*ln(c*(e*x+d)^n))*ln(e*((-f)^(1/2)+x*g^(1 
/2))/(e*(-f)^(1/2)-d*g^(1/2)))/(-f)^(1/2)/g^(1/2)-1/2*b*n*polylog(2,-(e*x+ 
d)*g^(1/2)/(e*(-f)^(1/2)-d*g^(1/2)))/(-f)^(1/2)/g^(1/2)+1/2*b*n*polylog(2, 
(e*x+d)*g^(1/2)/(e*(-f)^(1/2)+d*g^(1/2)))/(-f)^(1/2)/g^(1/2)
 
3.3.63.2 Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 184, normalized size of antiderivative = 0.77 \[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x^2} \, dx=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \left (\log \left (\frac {e \left (\sqrt {-f}-\sqrt {g} x\right )}{e \sqrt {-f}+d \sqrt {g}}\right )-\log \left (\frac {e \left (\sqrt {-f}+\sqrt {g} x\right )}{e \sqrt {-f}-d \sqrt {g}}\right )\right )-b n \operatorname {PolyLog}\left (2,-\frac {\sqrt {g} (d+e x)}{e \sqrt {-f}-d \sqrt {g}}\right )+b n \operatorname {PolyLog}\left (2,\frac {\sqrt {g} (d+e x)}{e \sqrt {-f}+d \sqrt {g}}\right )}{2 \sqrt {-f} \sqrt {g}} \]

input
Integrate[(a + b*Log[c*(d + e*x)^n])/(f + g*x^2),x]
 
output
((a + b*Log[c*(d + e*x)^n])*(Log[(e*(Sqrt[-f] - Sqrt[g]*x))/(e*Sqrt[-f] + 
d*Sqrt[g])] - Log[(e*(Sqrt[-f] + Sqrt[g]*x))/(e*Sqrt[-f] - d*Sqrt[g])]) - 
b*n*PolyLog[2, -((Sqrt[g]*(d + e*x))/(e*Sqrt[-f] - d*Sqrt[g]))] + b*n*Poly 
Log[2, (Sqrt[g]*(d + e*x))/(e*Sqrt[-f] + d*Sqrt[g])])/(2*Sqrt[-f]*Sqrt[g])
 
3.3.63.3 Rubi [A] (verified)

Time = 0.43 (sec) , antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2856, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x^2} \, dx\)

\(\Big \downarrow \) 2856

\(\displaystyle \int \left (\frac {\sqrt {-f} \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 f \left (\sqrt {-f}-\sqrt {g} x\right )}+\frac {\sqrt {-f} \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 f \left (\sqrt {-f}+\sqrt {g} x\right )}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\log \left (\frac {e \left (\sqrt {-f}-\sqrt {g} x\right )}{d \sqrt {g}+e \sqrt {-f}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {\log \left (\frac {e \left (\sqrt {-f}+\sqrt {g} x\right )}{e \sqrt {-f}-d \sqrt {g}}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {b n \operatorname {PolyLog}\left (2,-\frac {\sqrt {g} (d+e x)}{e \sqrt {-f}-d \sqrt {g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {b n \operatorname {PolyLog}\left (2,\frac {\sqrt {g} (d+e x)}{\sqrt {g} d+e \sqrt {-f}}\right )}{2 \sqrt {-f} \sqrt {g}}\)

input
Int[(a + b*Log[c*(d + e*x)^n])/(f + g*x^2),x]
 
output
((a + b*Log[c*(d + e*x)^n])*Log[(e*(Sqrt[-f] - Sqrt[g]*x))/(e*Sqrt[-f] + d 
*Sqrt[g])])/(2*Sqrt[-f]*Sqrt[g]) - ((a + b*Log[c*(d + e*x)^n])*Log[(e*(Sqr 
t[-f] + Sqrt[g]*x))/(e*Sqrt[-f] - d*Sqrt[g])])/(2*Sqrt[-f]*Sqrt[g]) - (b*n 
*PolyLog[2, -((Sqrt[g]*(d + e*x))/(e*Sqrt[-f] - d*Sqrt[g]))])/(2*Sqrt[-f]* 
Sqrt[g]) + (b*n*PolyLog[2, (Sqrt[g]*(d + e*x))/(e*Sqrt[-f] + d*Sqrt[g])])/ 
(2*Sqrt[-f]*Sqrt[g])
 

3.3.63.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2856
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_. 
)*(x_)^(r_))^(q_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x) 
^n])^p, (f + g*x^r)^q, x], x] /; FreeQ[{a, b, c, d, e, f, g, n, r}, x] && I 
GtQ[p, 0] && IntegerQ[q] && (GtQ[q, 0] || (IntegerQ[r] && NeQ[r, 1]))
 
3.3.63.4 Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 0.75 (sec) , antiderivative size = 405, normalized size of antiderivative = 1.69

method result size
risch \(-\frac {b \arctan \left (\frac {2 g \left (e x +d \right )-2 d g}{2 e \sqrt {f g}}\right ) n \ln \left (e x +d \right )}{\sqrt {f g}}+\frac {b \arctan \left (\frac {2 g \left (e x +d \right )-2 d g}{2 e \sqrt {f g}}\right ) \ln \left (\left (e x +d \right )^{n}\right )}{\sqrt {f g}}+\frac {b n \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {-f g}-g \left (e x +d \right )+d g}{e \sqrt {-f g}+d g}\right )}{2 \sqrt {-f g}}-\frac {b n \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {-f g}+g \left (e x +d \right )-d g}{e \sqrt {-f g}-d g}\right )}{2 \sqrt {-f g}}+\frac {b n \operatorname {dilog}\left (\frac {e \sqrt {-f g}-g \left (e x +d \right )+d g}{e \sqrt {-f g}+d g}\right )}{2 \sqrt {-f g}}-\frac {b n \operatorname {dilog}\left (\frac {e \sqrt {-f g}+g \left (e x +d \right )-d g}{e \sqrt {-f g}-d g}\right )}{2 \sqrt {-f g}}+\frac {\left (-\frac {i b \pi \,\operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i \left (e x +d \right )^{n}\right )}{2}+\frac {i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b}{2}+\frac {i \pi \,\operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b}{2}-\frac {i \pi \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3} b}{2}+b \ln \left (c \right )+a \right ) \arctan \left (\frac {g x}{\sqrt {f g}}\right )}{\sqrt {f g}}\) \(405\)

input
int((a+b*ln(c*(e*x+d)^n))/(g*x^2+f),x,method=_RETURNVERBOSE)
 
output
-b/(f*g)^(1/2)*arctan(1/2*(2*g*(e*x+d)-2*d*g)/e/(f*g)^(1/2))*n*ln(e*x+d)+b 
/(f*g)^(1/2)*arctan(1/2*(2*g*(e*x+d)-2*d*g)/e/(f*g)^(1/2))*ln((e*x+d)^n)+1 
/2*b*n*ln(e*x+d)/(-f*g)^(1/2)*ln((e*(-f*g)^(1/2)-g*(e*x+d)+d*g)/(e*(-f*g)^ 
(1/2)+d*g))-1/2*b*n*ln(e*x+d)/(-f*g)^(1/2)*ln((e*(-f*g)^(1/2)+g*(e*x+d)-d* 
g)/(e*(-f*g)^(1/2)-d*g))+1/2*b*n/(-f*g)^(1/2)*dilog((e*(-f*g)^(1/2)-g*(e*x 
+d)+d*g)/(e*(-f*g)^(1/2)+d*g))-1/2*b*n/(-f*g)^(1/2)*dilog((e*(-f*g)^(1/2)+ 
g*(e*x+d)-d*g)/(e*(-f*g)^(1/2)-d*g))+(-1/2*I*b*Pi*csgn(I*c)*csgn(I*(e*x+d) 
^n)*csgn(I*c*(e*x+d)^n)+1/2*I*b*Pi*csgn(I*c)*csgn(I*c*(e*x+d)^n)^2+1/2*I*b 
*Pi*csgn(I*(e*x+d)^n)*csgn(I*c*(e*x+d)^n)^2-1/2*I*b*Pi*csgn(I*c*(e*x+d)^n) 
^3+b*ln(c)+a)/(f*g)^(1/2)*arctan(g*x/(f*g)^(1/2))
 
3.3.63.5 Fricas [F]

\[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x^2} \, dx=\int { \frac {b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{g x^{2} + f} \,d x } \]

input
integrate((a+b*log(c*(e*x+d)^n))/(g*x^2+f),x, algorithm="fricas")
 
output
integral((b*log((e*x + d)^n*c) + a)/(g*x^2 + f), x)
 
3.3.63.6 Sympy [F(-1)]

Timed out. \[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x^2} \, dx=\text {Timed out} \]

input
integrate((a+b*ln(c*(e*x+d)**n))/(g*x**2+f),x)
 
output
Timed out
 
3.3.63.7 Maxima [F]

\[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x^2} \, dx=\int { \frac {b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{g x^{2} + f} \,d x } \]

input
integrate((a+b*log(c*(e*x+d)^n))/(g*x^2+f),x, algorithm="maxima")
 
output
b*integrate((log((e*x + d)^n) + log(c))/(g*x^2 + f), x) + a*arctan(g*x/sqr 
t(f*g))/sqrt(f*g)
 
3.3.63.8 Giac [F]

\[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x^2} \, dx=\int { \frac {b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{g x^{2} + f} \,d x } \]

input
integrate((a+b*log(c*(e*x+d)^n))/(g*x^2+f),x, algorithm="giac")
 
output
integrate((b*log((e*x + d)^n*c) + a)/(g*x^2 + f), x)
 
3.3.63.9 Mupad [F(-1)]

Timed out. \[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x^2} \, dx=\int \frac {a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )}{g\,x^2+f} \,d x \]

input
int((a + b*log(c*(d + e*x)^n))/(f + g*x^2),x)
 
output
int((a + b*log(c*(d + e*x)^n))/(f + g*x^2), x)